package cn.basic.social.api.qwtalk.channel.internal.response;

import cn.basic.social.api.qwtalk.QwResponse;

import java.io.Serializable;
import java.util.List;

/**
 * @ClassName InternalOpenuseridToUseridResponse
 * @Description 将代开发应用或第三方应用获取的密文open_userid转换为明文userid返回值
 * @Author zlf
 * @Date 2023/8/28 14:15
 */
public class InternalOpenuseridToUseridResponse extends QwResponse implements Serializable {

    /**
     * 明文userid列表
     */
    private List<UserId> useridList;

    /**
     * 不合法的open_userid列表
     */
    private List<String> invalidOpenUseridList;

    public InternalOpenuseridToUseridResponse() {
    }

    public List<UserId> getUseridList() {
        return useridList;
    }

    public void setUseridList(List<UserId> useridList) {
        this.useridList = useridList;
    }

    public List<String> getInvalidOpenUseridList() {
        return invalidOpenUseridList;
    }

    public void setInvalidOpenUseridList(List<String> invalidOpenUseridList) {
        this.invalidOpenUseridList = invalidOpenUseridList;
    }

    public static class UserId {

        /**
         * 转换成功的open_userid
         */
        private String openUserid;

        /**
         * 转换成功的open_userid对应的userid
         */
        private String userid;

        public String getOpenUserid() {
            return openUserid;
        }

        public void setOpenUserid(String openUserid) {
            this.openUserid = openUserid;
        }

        public String getUserid() {
            return userid;
        }

        public void setUserid(String userid) {
            this.userid = userid;
        }
    }
}
